package partialfunction


object PartialFunctionDemo {

  def f1:PartialFunction[String, Int] = {
    case "Hello" => 1
    case "Hi" => 2
    case _ => 3
  }
  def main(args: Array[String]): Unit = {
    val value1 = f1("dfdf")
    println(value1)
  }
}
